home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / PInterfaces / ASDebugging.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  6.3 KB  |  180 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ASDebugging.p
  3.  
  4.      Contains:    AppleScript Debugging Interfaces.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT ASDebugging;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __ASDEBUGGING__}
  30. {$SETC __ASDEBUGGING__ := 1}
  31.  
  32. {$I+}
  33. {$SETC ASDebuggingIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __APPLEEVENTS__}
  38. {$I AppleEvents.p}
  39. {$ENDC}
  40. {    Errors.p                                                    }
  41. {        ConditionalMacros.p                                        }
  42. {    Types.p                                                        }
  43. {    Memory.p                                                    }
  44. {        MixedMode.p                                                }
  45. {    OSUtils.p                                                    }
  46. {    Events.p                                                    }
  47. {        Quickdraw.p                                                }
  48. {            QuickdrawText.p                                        }
  49. {    EPPC.p                                                        }
  50. {        AppleTalk.p                                                }
  51. {        Files.p                                                    }
  52. {            Finder.p                                            }
  53. {        PPCToolbox.p                                            }
  54. {        Processes.p                                                }
  55. {    Notification.p                                                }
  56.  
  57. {$IFC UNDEFINED __APPLESCRIPT__}
  58. {$I AppleScript.p}
  59. {$ENDC}
  60. {    OSA.p                                                        }
  61. {        AEObjects.p                                                }
  62. {        Components.p                                            }
  63. {    TextEdit.p                                                    }
  64.  
  65. {$PUSH}
  66. {$ALIGN MAC68K}
  67. {$LibExport+}
  68.  
  69. CONST
  70. {     This mode flag can be passed to OSASetProperty or OSASetHandler
  71.         and will prevent properties or handlers from being defined in a context
  72.         that doesn't already have bindings for them. An error is returned if
  73.         a current binding doesn't already exist. }
  74.     kOSAModeDontDefine            = $0001;
  75.  
  76. {*************************************************************************
  77.     Component Selectors
  78. *************************************************************************}
  79.     kASSelectSetPropertyObsolete = $1101;
  80.     kASSelectGetPropertyObsolete = $1101;
  81.     kASSelectSetHandlerObsolete    = $1103;
  82.     kASSelectGetHandlerObsolete    = $1104;
  83.     kASSelectGetAppTerminologyObsolete = $1105;
  84.     kASSelectSetProperty        = $1106;
  85.     kASSelectGetProperty        = $1107;
  86.     kASSelectSetHandler            = $1108;
  87.     kASSelectGetHandler            = $1109;
  88.     kASSelectGetAppTerminology    = $110A;
  89.     kASSelectGetSysTerminology    = $110B;
  90.     kASSelectGetPropertyNames    = $110C;
  91.     kASSelectGetHandlerNames    = $110D;
  92.  
  93. {*************************************************************************
  94.     Context Accessors
  95. *************************************************************************}
  96.  
  97. FUNCTION OSASetProperty(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR variableName: AEDesc; scriptValueID: OSAID): OSAError;
  98.     {$IFC NOT GENERATINGCFM}
  99.     INLINE $2F3C, 16, $1106, $7000, $A82A;
  100.     {$ENDC}
  101. FUNCTION OSAGetProperty(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR variableName: AEDesc; VAR resultingScriptValueID: OSAID): OSAError;
  102.     {$IFC NOT GENERATINGCFM}
  103.     INLINE $2F3C, 16, $1107, $7000, $A82A;
  104.     {$ENDC}
  105. FUNCTION OSAGetPropertyNames(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; VAR resultingPropertyNames: AEDescList): OSAError;
  106.     {$IFC NOT GENERATINGCFM}
  107.     INLINE $2F3C, 12, $110C, $7000, $A82A;
  108.     {$ENDC}
  109. FUNCTION OSASetHandler(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR handlerName: AEDesc; compiledScriptID: OSAID): OSAError;
  110.     {$IFC NOT GENERATINGCFM}
  111.     INLINE $2F3C, 16, $1108, $7000, $A82A;
  112.     {$ENDC}
  113. FUNCTION OSAGetHandler(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR handlerName: AEDesc; VAR resultingCompiledScriptID: OSAID): OSAError;
  114.     {$IFC NOT GENERATINGCFM}
  115.     INLINE $2F3C, 16, $1109, $7000, $A82A;
  116.     {$ENDC}
  117. FUNCTION OSAGetHandlerNames(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; VAR resultingHandlerNames: AEDescList): OSAError;
  118.     {$IFC NOT GENERATINGCFM}
  119.     INLINE $2F3C, 12, $110D, $7000, $A82A;
  120.     {$ENDC}
  121. FUNCTION OSAGetAppTerminology(scriptingComponent: ComponentInstance; modeFlags: LONGINT; VAR fileSpec: FSSpec; terminologyID: INTEGER; VAR didLaunch: BOOLEAN; VAR terminologyList: AEDesc): OSAError;
  122.     {$IFC NOT GENERATINGCFM}
  123.     INLINE $2F3C, 18, $110A, $7000, $A82A;
  124.     {$ENDC}
  125. { Errors:
  126.        errOSASystemError        operation failed
  127.     }
  128. FUNCTION OSAGetSysTerminology(scriptingComponent: ComponentInstance; modeFlags: LONGINT; terminologyID: INTEGER; VAR terminologyList: AEDesc): OSAError;
  129.     {$IFC NOT GENERATINGCFM}
  130.     INLINE $2F3C, 10, $110B, $7000, $A82A;
  131.     {$ENDC}
  132. { Errors:
  133.        errOSASystemError        operation failed
  134.     }
  135. { Notes on terminology ID
  136.  
  137.     A terminology ID is derived from script code and language code
  138.     as follows;
  139.  
  140.         terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
  141. }
  142. {*************************************************************************
  143.     Obsolete versions provided for backward compatibility:
  144. }
  145. FUNCTION ASSetProperty(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR variableName: AEDesc; scriptValueID: OSAID): OSAError;
  146.     {$IFC NOT GENERATINGCFM}
  147.     INLINE $2F3C, 12, $1101, $7000, $A82A;
  148.     {$ENDC}
  149. FUNCTION ASGetProperty(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR variableName: AEDesc; VAR resultingScriptValueID: OSAID): OSAError;
  150.     {$IFC NOT GENERATINGCFM}
  151.     INLINE $2F3C, 12, $1101, $7000, $A82A;
  152.     {$ENDC}
  153. FUNCTION ASSetHandler(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR handlerName: AEDesc; compiledScriptID: OSAID): OSAError;
  154.     {$IFC NOT GENERATINGCFM}
  155.     INLINE $2F3C, 12, $1103, $7000, $A82A;
  156.     {$ENDC}
  157. FUNCTION ASGetHandler(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR handlerName: AEDesc; VAR resultingCompiledScriptID: OSAID): OSAError;
  158.     {$IFC NOT GENERATINGCFM}
  159.     INLINE $2F3C, 12, $1104, $7000, $A82A;
  160.     {$ENDC}
  161. FUNCTION ASGetAppTerminology(scriptingComponent: ComponentInstance; VAR fileSpec: FSSpec; terminologID: INTEGER; VAR didLaunch: BOOLEAN; VAR terminologyList: AEDesc): OSAError;
  162.     {$IFC NOT GENERATINGCFM}
  163.     INLINE $2F3C, 14, $1105, $7000, $A82A;
  164.     {$ENDC}
  165. { Errors:
  166.         errOSASystemError        operation failed
  167.     }
  168. {************************************************************************}
  169.  
  170. {$ALIGN RESET}
  171. {$POP}
  172.  
  173. {$SETC UsingIncludes := ASDebuggingIncludes}
  174.  
  175. {$ENDC} {__ASDEBUGGING__}
  176.  
  177. {$IFC NOT UsingIncludes}
  178.  END.
  179. {$ENDC}
  180.